﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Reflection;
using Etong.Web;
/// <summary>
///SearchRunFactory 的摘要说明
/// </summary>
public class SearchRunFactory
{
	public SearchRunFactory()
	{
		//
		//TODO: 在此处添加构造函数逻辑
		//
	}

    public static ISearchRunType GetSearchRunTypeClass(SearchRunType searchRunType)
    {
        try
        {
            return (ISearchRunType)Assembly.Load("App_Code").CreateInstance(searchRunType.ToString() + "SearchRun");
        }
        catch (Exception ex)
        {
            return new EqualSearchRun();
        }
    }
}
